import { NodeGraph } from "./NodeGraph";

export class NodeRoot{  
    public GUID:string;
    private _parent : NodeGraph;
    public get parent() : NodeGraph {
        return this._parent;
    }
    public set parent(v : NodeGraph) {
        this._parent = v;
    }
    
    get ownerNode():cc.Node{
        return this.parent.node;
    }
    onInit(...args:any[]){

    }
    onEnter(){

    }
    onStep(dt:number):boolean{
        return true;
    }
    onLateUpdate(){

    }
    onExit(){

    }
}